//
//  ExpCollectionCell.h
//  KidReading
//
//  Created by telen on 15/7/29.
//  Copyright (c) 2015年 刘赞黄Telen. All rights reserved.
//

#import <UIKit/UIKit.h>

#define _id_FuncCollectionCell @"FuncCollectionCell_id_"

//记录这边书的当前状态
typedef enum : NSInteger {
    FuncCellStatus_none,
    FuncCellStatus_downStart,
    FuncCellStatus_downIng,
    FuncCellStatus_downDone,
    FuncCellStatus_downFail,
    FuncCellStatus_toDelete,
} FuncCellStatus;

@class TABLE_BOOKS,VerticallyAlignedLabel;

@interface FuncCollectionCell : UICollectionViewCell
@property (weak, nonatomic) IBOutlet UIImageView *imagview_downDoneIcon;
@property (weak, nonatomic) IBOutlet UIImageView *imageview_flag;
@property (weak, nonatomic) IBOutlet UIImageView *imageview_cover;
@property (weak, nonatomic) IBOutlet UIImageView *imageView_shadow;

@property (weak, nonatomic) IBOutlet VerticallyAlignedLabel *lable_title;
//@property (weak, nonatomic) IBOutlet UILabel *lable_subTitle;
@property (weak, nonatomic) IBOutlet UIView *view_bookcover;
@property (weak, nonatomic) IBOutlet UIImageView *newflag_imgv;
//
@property (assign,nonatomic) NSInteger salefag;
@property (strong,nonatomic) TABLE_BOOKS* tb_book;
@property (assign,nonatomic,readonly) FuncCellStatus status;
//
- (void)setDownProgress:(NSInteger)numOf100;//不带type
- (void)updateDownProgress:(NSInteger)numOf100;//刷新下载进度 显示
- (void)setBookDownStart;
- (void)setBookDownDone;
- (void)setBookToDelete;
- (void)setBookDownFail;
- (void)setBookDownNone;
//
@property(nonatomic,strong)NSIndexPath* indexPath;
@property(nonatomic,strong)void(^didTouchCell)(FuncCollectionCell* cell);

@end
